package org.example.utils.oaa;


import org.example.dao.entity.user.UUser;
import org.example.skytool.commom.IconConstant;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class ExtendOaaService {

        public UUser createUser(Long id,String openId){
            UUser user = new UUser();
            user.setId(id);
            user.setOpenId(openId);
            user.setCreateTime(new Date());
            user.setUpdateTime(new Date());
            user.setLastLoginTime(new Date());
            user.setIcon(IconConstant.getIcon());
            user.setNickName("小黑子");
            user.setGender("还未设置！");
            user.setIsValid(1);
            user.setSign("暂未设置");
            return user;
        }


}
